import os
import django

os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'django_show_movies.settings')
django.setup()

from movies.models import Movie

movies_data = [
    {"title": "肖申克的救赎", "year": 1994, "director": "弗兰克·德拉邦特", "description": "两个被囚禁在肖申克监狱的犯人建立友谊，寻找最终救赎的故事。"},
    {"title": "教父", "year": 1972, "director": "弗朗西斯·福特·科波拉", "description": "黑手党家族的故事，权力的传承与代价。"},
    {"title": "黑暗骑士", "year": 2008, "director": "克里斯托弗·诺兰", "description": "蝙蝠侠与小丑的对决，探讨正义与混乱的界限。"},
    {"title": "阿甘正传", "year": 1994, "director": "罗伯特·泽米吉斯", "description": "一个智商不高但心地善良的男子见证并参与美国历史重要事件的故事。"},
    {"title": "指环王3：王者归来", "year": 2003, "director": "彼得·杰克逊", "description": "中土世界最终之战，魔戒远征队完成使命。"},
    {"title": "泰坦尼克号", "year": 1997, "director": "詹姆斯·卡梅隆", "description": "豪华邮轮上的跨越阶层的爱情悲剧。"},
    {"title": "盗梦空间", "year": 2010, "director": "克里斯托弗·诺兰", "description": "通过共享梦境窃取思想的科幻动作片。"},
]

for data in movies_data:
    Movie.objects.create(**data)
